* {
    padding: 0;
    margin: 0;
    list-style: none;
}

.swiper {
    width: 500px;
    height: 400px;
    margin: auto;
    position: relative;
    overflow: hidden;
}

.swiper ul {
    /* 本身只有四张图  但是留5张图的位置 */
    width: 500px;
    height: 2000px;
    position: absolute;
    top: 0;
}

.swiper ul li {
    width: 500px;
    height: 400px;
    text-align: center;
    font-size: 50px;
    line-height: 400px;
    background-color: #f00;
}
.swiper ul li img {
    width: 100%;
    height: 100%;
}

.swiper span {
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    text-align: center;
    line-height: 30px;
}

.swiper .next {
    right: 0;
}

.swiper ol {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.swiper ol li {
    width: 30px;
    height: 30px;
    background-color: orange;
    margin: 10px;
}

.swiper .active {
    background-color: #000;
}